﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Microsoft.Samples.Kinect.SkeletonBasics
{
    struct FrameInfo
    {
        public int frameNum;
        public long frameTimestamp;         
        public int trackingID1;
        public float info1;
        public float x1;
        public float y1;
        public float z1;
        public int trackingID2;
        public float info2;
        public float x2;
        public float y2;
        public float z2;
    }
    class TrackInfo
    {
        public int frameCnt;
        public List<FrameInfo> frames;

        public TrackInfo()
        {
            frameCnt = 0;
            frames = new List<FrameInfo>();
        }

        public void addFrame(int frameNum, long frameTimestamp, int trackingID1, float info1, float x1, float y1, float z1, int trackingID2, float info2, float x2, float y2, float z2)
        {
            FrameInfo frame = new FrameInfo();
            frame.frameNum = frameNum;
            frame.frameTimestamp = frameTimestamp;
            frame.trackingID1 = trackingID1;
            frame.info1 = info1;
            frame.x1 = x1;
            frame.y1 = y1;
            frame.z1 = z1;

            frame.trackingID2 = trackingID2;
            frame.info2 = info2;
            frame.x2 = x2;
            frame.y2 = y2;
            frame.z2 = z2;

            this.frameCnt++;
            frames.Add(frame);
        }
    }
}
